<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
if(isset($error)){
    echo ('Invalid login');
}
?>

<div id="loginForm">
    <h2>User Log In</h2>
<?php echo $form->create('User', array('action'=>'login')); ?>
<?php echo $form->input('email_addr', array('label' => 'Email Address'));
echo $form->input('passwd', array('label' => 'Password')); ?>
<?php echo $form->end('Login'); ?>
</div>
<br/>
<div id="loginForm">
   <p>Don't have a socialite account?</p>
    <br/>
<?php echo $html->link('Register Now', array('action'=>'register')); ?>
<?php
echo '<br>';
echo $html->link('Login as a host', array('controller' => 'hosts', 'action'=>'login'));
                ?>
</div>